.class final Lcom/ninesky/browser/view/ac;
.super Landroid/widget/LinearLayout;


# instance fields
.field final synthetic a:Lcom/ninesky/browser/view/f;

.field private b:Landroid/widget/LinearLayout$LayoutParams;

.field private c:Landroid/widget/LinearLayout$LayoutParams;

.field private d:Landroid/widget/LinearLayout$LayoutParams;

.field private e:Landroid/widget/LinearLayout$LayoutParams;

.field private f:Landroid/widget/ImageButton;

.field private g:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Lcom/ninesky/browser/view/f;Landroid/content/Context;)V
    .locals 5

    const/4 v3, -0x1

    const/4 v4, 0x0

    iput-object p1, p0, Lcom/ninesky/browser/view/ac;->a:Lcom/ninesky/browser/view/f;

    invoke-direct {p0, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->a:I

    invoke-direct {v0, v1, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/ninesky/browser/view/ac;->b:Landroid/widget/LinearLayout$LayoutParams;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/f;->b()I

    move-result v1

    invoke-direct {v0, v1, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/ninesky/browser/view/ac;->c:Landroid/widget/LinearLayout$LayoutParams;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/f;->c()I

    move-result v1

    invoke-direct {v0, v1, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/ninesky/browser/view/ac;->d:Landroid/widget/LinearLayout$LayoutParams;

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/f;->d()I

    move-result v1

    invoke-direct {v0, v1, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/ninesky/browser/view/ac;->e:Landroid/widget/LinearLayout$LayoutParams;

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->b:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->b:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->c:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->c:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->d:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->d:Landroid/widget/LinearLayout$LayoutParams;

    sget v1, Lcom/ninesky/browser/view/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    const v0, 0x7f02008c

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setBackgroundResource(I)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, 0x1

    const/high16 v2, 0x3f80

    invoke-direct {v0, v1, v3, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    const/16 v1, 0x13

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v1, v4, v4, v4, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->setSingleLine()V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/ninesky/browser/view/ac;->mContext:Landroid/content/Context;

    const v3, 0x7f080003

    invoke-virtual {v1, v2, v3}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    const/16 v2, 0x10

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    sget-object v2, Landroid/text/TextUtils$TruncateAt;->MARQUEE:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {p0, v1, v0}, Lcom/ninesky/browser/view/ac;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    new-instance v1, Lcom/ninesky/browser/view/y;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/y;-><init>(Lcom/ninesky/browser/view/ac;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/f;->e()I

    move-result v1

    invoke-static {}, Lcom/ninesky/browser/view/f;->e()I

    move-result v2

    const/4 v3, 0x0

    invoke-direct {v0, v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    const/16 v1, 0x11

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    new-instance v1, Landroid/widget/ImageButton;

    invoke-direct {v1, p2}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {v1, v4, v4, v4, v4}, Landroid/widget/ImageButton;->setPadding(IIII)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    const v2, 0x7f020096

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setImageResource(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {v1, v4}, Landroid/widget/ImageButton;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {p0, v1, v0}, Lcom/ninesky/browser/view/ac;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    new-instance v1, Lcom/ninesky/browser/view/x;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/x;-><init>(Lcom/ninesky/browser/view/ac;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/view/ac;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->mContext:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public final a()V
    .locals 9

    const/16 v8, 0x11

    const/4 v7, 0x1

    const/4 v6, 0x2

    const/4 v5, 0x0

    const/4 v4, -0x1

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->a:Lcom/ninesky/browser/view/f;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {v1, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/ac;->a:Lcom/ninesky/browser/view/f;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v1

    if-le v1, v6, :cond_1

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v2, 0x3f80

    invoke-direct {v1, v4, v4, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    iput v8, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    :goto_0
    iget-object v2, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {p0, v2}, Lcom/ninesky/browser/view/ac;->removeView(Landroid/view/View;)V

    iget-object v2, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    invoke-virtual {p0, v2, v1}, Lcom/ninesky/browser/view/ac;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    if-le v0, v6, :cond_2

    invoke-virtual {p0, v8}, Lcom/ninesky/browser/view/ac;->setGravity(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->b:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_0
    :goto_1
    invoke-virtual {p0, v7}, Lcom/ninesky/browser/view/ac;->setSelected(Z)V

    return-void

    :cond_1
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/ninesky/browser/view/f;->e()I

    move-result v2

    const/4 v3, 0x0

    invoke-direct {v1, v2, v4, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    const/16 v2, 0x15

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    goto :goto_0

    :cond_2
    if-ne v0, v6, :cond_3

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->d:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    :cond_3
    if-ne v0, v7, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->e:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method

.method public final a(I)V
    .locals 4

    const/4 v3, 0x2

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->f:Landroid/widget/ImageButton;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    if-le p1, v3, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->c:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    :goto_0
    invoke-virtual {p0, v2}, Lcom/ninesky/browser/view/ac;->setSelected(Z)V

    return-void

    :cond_1
    if-ne p1, v3, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->d:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->e:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public final b()V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/ac;->a:Lcom/ninesky/browser/view/f;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/ac;->a(I)V

    return-void
.end method
